//
//  YMJLayout.h
//  15网易云新闻条
//
//  Created by dllo on 16/8/3.
//  Copyright © 2016年 YMJ. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol YMJLayoutDelegate <NSObject>
    
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout widthForItemAtIndexPath:(NSIndexPath *)indexPath
                   height:(CGFloat)height;

@end
@interface YMJLayout : UICollectionViewLayout
@property (nonatomic, weak)id<YMJLayoutDelegate>delegate;
@end
